package operator.condition;

import io.reactivex.Observable;
import util.RxJavaHelper;

class ContainsOperator {

    public static void main(String[] args) {
        contains();
    }

    /**
     * 是否包含某个值，内部使用的any
     */
    static void contains(){
        Observable.just(1, 2, 3)
                .contains(4)
                .subscribe(RxJavaHelper.getSingleConsumer());
    }



}
